package com.ghp.common.model.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户创建请求
 */
@ApiModel(description = "新增用户")
@Data
public class UserAddDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户昵称", example = "小黑子", required = true)
    private String userName;

    /**
     * 账号
     */
    @ApiModelProperty(value = "账号", example = "admin", required = true)
    private String userAccount;

    /**
     * 用户头像
     */
    @ApiModelProperty(value = "头像", example = "上传一张图片")
    private String userAvatar;

    /**
     * 用户角色: user-普通用户 admin-管理员 ban-禁用
     */
    @ApiModelProperty(value = "用户角色，默认是user", example = "user")
    private String userRole;
}
